package day12;

public enum SexEnum {
    male, female;
}


class SexTest{
    public static void main(String[] args) {
        SexEnum sex = SexEnum.female;
        switch (sex){
            case male:
                System.out.println("男");
                break;
            case female:
                System.out.println("女");
                break;
            default:
                System.out.println("输入有误");
        }
    }
}
